

<style type="text/css">
	.span_i {
		display: none;
	}
	
	.beishu {
		width: 90px;
		height: 24px;
		color: #d11d1d;
		padding-left: 5px;
	}
	.header {
    background: #d91d36;
    width: 100%;
    height: 44px;
    overflow: hidden;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
}
.ui-toolbar-left {
    background: url(../img/goucai_qiehua_07.png) no-repeat;
}
.ui-toolbar-left, .ui-toolbar-right {
    position: absolute;
    z-index: 2;
}
.header h1 {
    width: 100%;
    text-align: center;
    font-size: 22px;
    line-height: 44px;
    color: #fff;
}
.header #reveal-left {
    background: url(__TEMPLATE__/mobile/index/img/blank_01.png) no-repeat;
    background-size: 42.5px;
    height: 44px;
    width: 42.5px;
    height: 44px;
    display: block;
}
.header #reveal-left, .header #reveal-right {
    color: #fff;
    width: 36px;
    height: 36px;
    display: block;
    text-indent: -99999px;
    border: none;
    position: absolute;
    cursor: pointer;
    outline: none;
}
.tidff {
    position: absolute;
    bottom: 0px;
    left: -7px;
    width: 100%;
}
.tid33 {
    position: absolute;
    width: 100%;
    bottom: 59px;
    height: 1px;
    background: #e6e6e6;
}
.beutt {
     background-color: white;
}
.scroll_border {
     border-radius: 15px; 
    float: left;
    margin: 5px auto;
    width: 212px;
    height: 3px;
    position: relative;
    background: url(bg.jpg) repeat-x 0 center;
    background: #a9acb1;
     box-shadow: -1px 0 2px #a9acb1 inset; 
     border: 1px solid #a9acb1; 
}
.scroll_btn {
    cursor: pointer;
    width: 22px;
    height: 22px;
    background: #e6e6e6;
    /* border: #666666 solid 1px; */
    border-radius: 12px;
    position: absolute;
    left: 0px;
    top: -11px;
    border: 1px solid #e6e6e6;
    /* box-shadow: 0 0 10px #e6e6e6; */
}
.panel-select li {
    padding: 0px;
    border-bottom: 1px dotted #EAEAEA;
    list-style: none;
}
.mobile_suiji div{
	display: inline-block;
	width: 90px;
	height: 25px;
	border:1px solid #ccc;
	border-radius: 5px;
	background-color: white;
	text-align: center;
	line-height: 22px;
}
.mobile_suiji div span{
	font-size: 19px;
	margin-right: 4px;
}
#tishi{width:200px;height:30px;display:none;background:black;position:fixed;top:200px;left:50%;margin-left:-100px;border-radius: 5px;text-align: center;font-size:14px;z-index: 999999999;opacity: .7;}
   
    #tishi p{width:100%;line-height:30px;text-align: center;color:#fff;font-weight:bold;}
.ddje_kj{
		display: inline-block;
	    width: 50px;
	    height: 20px;
	    text-align: center;
	    font-size: 12px;
	    border: 1px solid #ccc;
	    color: #666;
	    border-radius: 6px;
	    line-height: 20px;
	    margin-right: 5px;
	}
</style>
<div id="tishi">
  <p id="tishi_tsy" style="font-size:14px;"></p>
 
</div>
<div class="foot_tz" style="height:51px;background-color: #fff;">

	<div class="foot_bl" style="border-top: 2px solid #d8d8d8;box-shadow: 0 0 10px #d8d8d8;background-color: white;">
		<div class="foot_ul" style="position: relative;">
		

			<!--  <img class="qkqiuqiu" src="__TEMPLATE__/mobile/index/img/shangchu.png" style='display: inline-block;width: 20px;height: 20px;position: absolute;top: 15px;left: 25px;z-index: 9999;' />-->
							

			<p style="position: absolute;top: 15px;right: 25px;">
				<span style="padding-top:3px; display:block;margin-right: -12px;margin-top: -17px;">
				<span class="beutt" onClick="queren_tianjiadingd('buyConfirmPop_tj');" style="margin-right:0;width:66px; height:30px; background:white; color:#d9233b; font-size:16px;display: inline-block;line-height: 30px;border:1px solid #d9233b;border-radius:7%;">投注</span>
			</p>
			
			
			<span class="beutt" onClick="queren_tianjiadingds('zhudan_list_ok');" style="width:100px; height:30px; background:white; color:#d9233b; font-size:12px;margin-left: 10px;display: inline-block;line-height: 30px;border:1px solid #d9233b;border-radius:7%;">注单列表<span style="">:<span id="J-gameOrder-lotterys-num" style="color: #e53120;"></span>注</span></span>
		
		<span class="beutt" style="font-size:10px;margin-left:30px;">已选:<span id="sm_stakes" style="color: #e53120;">0</span>注,共<font id="queren_zje" style="color:red;">0</font></font><font id="yjfms_3">元</font></span>
	
		</div>

	</div>

	<!--遮罩层-->
	<div id="JS_blockOverlay" style="z-index:10000001;border: none;margin: 0px;padding: 0px;width: 100%;height: 100%;top: 0px;left: 0px;background-color:#000;opacity: 0.6;cursor: default;position: fixed; display:none"></div>

</div>

<!--满足电脑js需求的id-->

<div class="chase-tab" style="display:none" id="zhuihaodm"></div>
<div id="J-gameOrder-amount" style="display:none"></div>

<!---确认添加框-->

<div id="buyConfirmPop_tj" style=" display:none">
	<div class="loading-mask1">
		<div class="loading">
			<div class="qurekua" style="height:270px;width: 90%;margin-left: 15px;">
				<div class="tid3"></div>
				<div class="tid1"></div>
				<div class="tid2">订单详情</div>
				
				<div id="" style="width: 260px;height: 50px;position: absolute;left: 12px;top: 41px;">
					
					{if condition="$game_id neq 9"}
			<p style="font-size: 14px;position: absolute;top: -17px;left: -3px;">
			{if condition="$play_id != 96 && $play_id != 120"}
				赔率:<span id="xianshi_peilv" style="color: #e53120;font-size: 14px;">{$wf_info.0.zgpl}</span>
			{/if}
	
			</p>

			<p style="font-size: 0.875rem;position: absolute;top: -17px;left: 160px;">
				返利:<span id="fandian_xianshi" style="color: #e53120;">0</span>
			</p>

			<div class="con_mid" id="scroll_one" style="position: absolute;">
				<div class="bottom_scroll clear" style="padding-top: 4px;border-radius: 5px;">
					<!--<span class="scroll_left scroll_l" tip="0" style="margin-left: 5px;">-</span>-->
					<div class="scroll_border">
						<div class="scroll_btn" style="left: 0px;"></div>
					</div>

					<!--<span class="scroll_rig scroll_r" tip="1"></span>-->
					<div class="clear"></div>
				</div>
			</div>
			{elseif condition="$play_id==173 || $play_id==242" /}

			<p style="color: #807772;font-size: 14px;position: absolute;top: 6px;left: 10px;">
				赔率:<span id="xianshi_peilv" style="color: #e53120">{$wf_info.0.zgpl}</span>

			</p>
			
			{/if}
			
					
				</div>
				
				
				<div class="foot_bs" style="width: 85px;position: absolute;top: 48px;left: 27px;">

				<span id="dz" style=" position: absolute;top: 1px;left: -5px;">单注：</span>
				<span id="input_dzje" style="position: absolute;top: 1px;left: 37px;">
         		<input type="number" value="2" name="muu" maxlength="6" class="beishu" pattern="[0-9]*" id="multiple" style="border:#e53120 solid 1px" onKeyUp="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')};jishuan_zhushu_zidong();" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')};jishuan_zhushu_zidong();" />
         		<font id="sm_money" style="display:none"></font></span>

				<div id="" style="display: inline-block;margin-left: 145px;margin-top: 4px;width: 110px;">
						{if condition="$yjf.yuan eq 1"}
					<div class="yuanjiaofen" onClick="yuan_jiao_fen(1)" id="yuanjiaomos_1" >元</div>
					{/if} {if condition="$yjf.jiao eq 1"}
					<div class="yuanjiaofen_1" onClick="yuan_jiao_fen(2)" id="yuanjiaomos_2" style=" margin-left:5px">角</div>
					{/if} {if condition="$yjf.fen eq 1"}
					<div class="yuanjiaofen_1" onClick="yuan_jiao_fen(3)" id="yuanjiaomos_3" style="margin-left:5px">分</div>
					{/if}
				</div>
			<div class="ddje_q" style="width: 228px;position: absolute;top: 31px;left: -8px;">
					<span class="ddje_kj">10</span><span class="ddje_kj">20</span><span class="ddje_kj">50</span><span class="ddje_kj">100</span>
				</div>
	
			</div>
				
				
				<div class="tid4" style="width:260px; line-height:35px; position: absolute;left: 23px;top: 114px;">
					<!--<span>投注模式：<font class="gg3" id="queren_moshi">元</font></span><br/>-->
					<span>投注注数：<font class="gg1"><font id="queren_zhushu">2</font>注</font></span><br/>
					<span>投注总额：<font class="gg2"><font id="queren_zongjine"></span><font id="yjfms_1">元</font><br/>
					<span>若中奖,单注最高中：<font class="gg3"><font id="queren_zgzjje"></span><font id="yjfms_2">元</font><br/>
				</div>

				<div class="tid33"></div>
				<div class="tidff">
					<div class="tid5">
						<input style="width: 40%;margin-left: 20px;background: #eee;color: #b5b5b5;" type="submit" class="anniufq" value="取消" id="touzhuque_2" onClick="queren_tianjiadingd_gb('buyConfirmPop_tj')" id="delbtxxn" />

						<input style="width: 40%;margin-left: 20px;background-color: #ec0909;color: #fff;" type="submit" class="anniuf" value="确认添加" id="touzhuque_1" onClick="queren_tianjiadingd_gb('buyConfirmPop_tj');game_xuanzhong()" id="delbtn" />

						
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<!--确认添加框-->

<!---订单列表框-->

<div id="zhudan_list_ok" style=" display:none;height: 100%;">
	<div class="loading-mask1">
		<div class="loading" style="height: 100%;width: 100%;">
			<div class="qurekua" style="margin-left: -30px;margin-top: -105px;width: 100%;height: 100%;border-radius: 0;background-color: #f5f5f9;">
				<div class="tid3"></div>
				<!--<div class="tid1"></div>-->
				<div class="tid2" style="position: relative;">
					<div class="header">
    <div class="headerTop" style="position: relative;">
        <div class="ui-toolbar-left">
            <button id="reveal-left" onClick="queren_tianjiadingd_gb('zhudan_list_ok')">reveal</button>
        </div>
        <h1 class="ui-toolbar-title" style="font-weight: normal;">投注单</h1>
        <!--<div style="float:right;margin-top: -30px;margin-right: 10px;"><a href="{:url('user/login')}" style="color:white;">登录</a></div>-->
    </div>
</div>
				
				<div id="" style="width: 100%;height: 40px;border-bottom: 2px solid #d8d8d8;box-shadow: 0 0 10px #d8d8d8;position: absolute;top: 30px;left: -42px;background-color: white;text-align: center;line-height: 40px;">
					<p><font id="J_qihao">{$qihao_quan}</font>期&nbsp;截止时间：
					<font style="width:10px;">
						<em id="hour_pt_1" class='min-left' style='display: inline;font-size:14px;color:red;'>0</em>
						<em id="hour_pt_2" class='min-left' style='display: inline;font-size:14px;color:red;'>0</em>
						<span style='display: inline;font-size:14px;color:red;'>:</span>
						<em id="min_pt_1" class='min-left' style='display: inline;font-size:14px;color:red;'>0</em>
						<em id="min_pt_2" class='min-right' style='display: inline;font-size:14px;color:red;'>0</em>
						<span style='display: inline;font-size:14px;color:red;'>:</span>
						<em id="sec_pt_1" class='sec-left' style='display: inline;font-size:14px;color:red'>0</em>
						<em id="sec_pt_2" class='sec-right' style='display: inline;font-size:14px;color:red;'>0</em>
					</font></p>
				</div>
				
				<!-- 不可删,防止js出错 -->
				<div style="display:none">
					<span id="J_qihao_zh"></span>
					<span id="hour_zh_1"></span>
					<span id="hour_zh_2"></span>
					<span id="min_zh_1"></span>
					<span id="min_zh_2"></span>
					<span id="sec_zh_1"></span>
					<span id="sec_zh_2"></span>
				</div>
				<!-- 不可删,防止js出错 -->
				
				<div class="mobile_suiji" style="width: 100%;height: 40px;position: absolute;top: 76px;left: -40px;padding-top: 3px;">
						<!--<div class="mobile_suiyi" style="margin-left: 20px;" onclick="a();random_core({$play_id})">
							<span>+</span>随机一注
						</div>	
						<div class="mobile_suiwu" style="margin-left: 16px;" onclick="a();random_core_five({$play_id})">
							<span>+</span>随机五注
						</div>-->
						<div style="margin-left: 16px;" onclick="recentT_zhuihao1();random_core({$play_id})">
							<span>+</span>随机一注
						</div>
						<div style="margin-left: 16px;" onclick="recentT_zhuihao1();random_core_five({$play_id})">
							<span>+</span>随机五注
						</div>

				</div>
				
				</div>
				
				
				
				<div class="tid4" style="width:90%; line-height:35px;height: 70%;margin-top: 80px;">
					<div class="panel-select" style="height: 100%;">
						<div class="panel-select" style="position: relative;height: 100%;">
							<div id="" style="width: 99%;height: 14px;background-color: #f5f5f9;position: absolute;top: 1px;left: 1px;z-index: 9;"></div>
							<div id="" style="width: 96%;height: 15px;position: absolute;top: 15px;left: 5px;border-radius: 15px;background-color: white;border: 1px solid #ccc;z-index: 7;"></div>
							<div id="" style="width: 91%;height: 4px;background-color: #e5e5e5;position: absolute;top: 20px;left: 14px;border-radius: 15px;border: 1px solid #ccc;z-index: 8;"></div>
							<div id="" style="width: 88.3%;height: 10px;background-color: white;position: absolute;top: 22px;left: 19px;border: 1px solid #ccc;border-bottom: none;z-index: 9;"></div>
							
							<ul id="J-balls-order-container" style="height: 91%;padding-top: 27px;">
								
							</ul>
						</div>
					</div>
				</div>
				<div class="tidff" style="position: absolute;bottom: -5px;left: -7px;width: 100%;">
					<div class="tid5" style="height: 45px;background-color: white;position: relative;width: 100%;">
						<img id="delete_select" src="__TEMPLATE__/mobile/index/img/shangchu.png" style='display: inline-block;width: 20px;height: 20px;position: absolute;top: 15px;left: 25px;z-index: 9999;' />
							
						<span style="font-size: 13px;position: absolute;top: 8px;left: 73px;">合计:<font id="Q_heji" style="color: #faad1e;"></font>元</span>
						<span style="font-size: 13px;position: absolute;top: 25px;left: 73px;">可用余额￥:<span style="color: #faad1e;">{$user_all['je']}</span></span>
							
						<input style="width: 18%;float: right;margin-right: 5px;margin-left: 5px;margin-top: 7px;background-color: #d91d36;" type="submit" class="anniuf" value="确认投注" id="touzhuque_3" onClick="confirm_touzhu();" id="delbtn" />
						
						<input style="width: 14%;float: right;margin-top: 7px;background-color: #d91d36;" type="submit" class="anniufq" value="返回" id="touzhuque_2" onClick="queren_tianjiadingd_gb('zhudan_list_ok')" id="delbtxxn" />
					
					</div>
				</div>

			</div>
		</div>
	</div>
</div>
<!--订单列表框-->

<!--不用的参数-->
<input type="hidden"  id="cp_fp_time" value="{$caizhong.cp_fp_time}" >
<input type="hidden"  value="{$qihao_cur}" id="qihao_cur_spec" />
<input type="hidden"  value="{$qihao_fur}" id="qihao_fur_spec" />
<input type="hidden"  value="{$fandian}" id="no_fandian" />
<input type="hidden"  value="{$wf_info.0.zgpl}" id="no_zdpl" />
<input type="hidden"  value="{$wf_info.0.zdpl}" id="no_zxpl" />
<input type="hidden"  value="{$game_id}" id="no_czid" />
<input type="hidden"  value="{$wf_info.wanfa}" id="no_wfid" />
<input type="hidden"  value="1" id="no_yuanjiaofen" />
<input type="hidden"  value="{$no_tzhm_old}" id="no_old_tzhm" />
<input type="hidden"  value="{$now_time_windows}" id="no_xttime" />
<input type="hidden"  id="fandian" value="0" >
<input type="hidden"  value='{$wf_info_json}' id="wf_info_json" />
<input type="hidden"  value="{$play_id}" id="class_id" />
<input type="hidden"  id="peilv" value="{$peilvs}">
<input type="hidden"  id="touzhu_qihao" value="{$qihao_quan}" >
<input type="hidden"  id="tz_cookie_num" value="{$tz_cookie_num}" >
<input type="hidden"  id="car_num" value="{$tz_cookie_num}" >
<input type="hidden"  id="touzhu_shi" value="" >
</body>

<script type="text/javascript">


	if(sessionStorage){
		var mini = {$mini};
		$('#J-balls-order-container').html('')
     var storage = window.sessionStorage;
     var all_zhushu=0;
     var all_money_je=0;
	var all_no_old_tzhm = '';
	 for (var i=0, len = storage.length; i  <  len; i++){
	 	var key = storage.key(i); 
	 	var game_id=key.split('_')[2]
        var value = storage.getItem(key); 
	 	var arr=value.split('[G]')
	    var html='';

	    html='<li id="zhudan_mobile_'+game_id+'" style="width: 88.7%;margin-left: 18px;">'
		html+='<div style="border:#CCCCCC solid 1px; background:white; width:100%; line-height:35px;">'
		html+='<div style="padding:5px; border-bottom: #CCCCCC dashed 1px;position: relative;line-height:25px;">'		
		html+='<font style="color:#FF0000">投注号码：</font><img onclick="delete_one('+game_id+')" src="/static/template/mobile/index/img/guanbi.png" style="display: inline-block;width: 20px;height: 20px;float:right;" />'+arr[0]+'</div>'
		html+='<div style="padding:5px; border-bottom: #CCCCCC dashed 1px;line-height:25px;"><font style="color:#FF0000">投注注数：</font>'+arr[3]+'注</div>'
		html+='<div style="padding:5px; border-bottom: #CCCCCC dashed 1px;line-height:25px;"><font style="color:#FF0000">投注玩法：</font>'+mini[arr[7]]+'</div>'							
										
		html+='<div style="padding:5px; border-bottom: #CCCCCC dashed 1px;line-height:25px;"><font style="color:#FF0000">投注模式：</font>'+arr[1]+'</div>'	
		html+='<div style="padding:5px; border-bottom: #CCCCCC dashed 1px;line-height:25px;"><font style="color:#FF0000">投注金额：</font>'+arr[2]+'</div></div></li>'
		$('#J-balls-order-container').prepend(html)
		all_zhushu=all_zhushu+parseInt(arr[3])
		all_money_je=all_money_je+parseInt(arr[2])
		 all_no_old_tzhm_attr.push(key.replace('wanfa_tzhm_','biaoshi_')+'[SH]'+value);
	 }
     $('#J-gameOrder-lotterys-num').html(all_zhushu);
     $('#Q_heji').html(all_money_je);
		console.warn(all_no_old_tzhm_attr);
	}

	$('#header_touzhu').click(function() {
		$('#qiehuan_wanfa').toggle();
	})

	$('.cq_wz').click(function() {
		$('#quan_wanfa').toggle();
	})

	$("#qhczs_1").click(function() {

		$(".qhcz_1").css("display", "block")
	})
	$("#qhczz_1").click(function() {
		$(".qhcz_1").css("display", "none")
	})

	/* $("#tablea_1").find(".box_1:first").show(); */ //为每个BOX的第一个元素显示        
	$("#oranger_1 a").on("mouseover", function() { //给a标签添加事件  
		var index = $(this).index(); //获取当前a标签的个数  
		var val_q = $(this).html()
		$(this).parent().next().find(".box_1").hide().eq(index).show(); //返回上一层，在下面查找css名为box隐藏，然后选中的显示  
		$(this).addClass("hover").siblings().removeClass("hover"); //a标签显示，同辈元素隐藏  
		$(".box_1 div div a").click(function(){
			var val_2 = $(this).html()
			$("#qhczs_1").html(val_q + "-" + val_2)
			$(".qhcz_1").css("display", "none")
			
		})
	})

	$('.anniuf').click(function() {
		$('.prize').removeClass('prize-current');
		$('.num_table_ball').removeClass('num_table_ball2');
	})
	//滚轮失效
	//	 $('.scroll_one').bind('mousewheel', function(event, delta) { return false; });

	$('.bottom_scroll').bind('mousewheel', function(event, delta) {
		return false;
	});
</script>

<script type="text/javascript">
	$('.ball-control').children('a').click(function() {
		$(this).css('background-color', '#ffd800').siblings('a').css('background-color', 'white');
	})

	$('.ball-control').children("a:last-child").click(function() {
		$(this).css('background-color', 'white');
	});

	$('.num_table_ball').click(function() {

		var a = $(this).hasClass('num_table_ball2');
		if(a == false) {
			$(this).addClass('num_table_ball2');
		} else {
			$(this).removeClass('num_table_ball2');
		}
	})

	//彩种切换
	$('#cz_sj').click(function() {

		if($('#cz_nr').hasClass('cz_nr') == true) {
			$('#cz_nr').removeClass('cz_nr').addClass('cz_nr_tp');
			$(this).css('background-image', 'url("__TEMPLATE__/mobile/index/img/shang.png")');
		} else {
			$('#cz_nr').removeClass('cz_nr_tp').addClass('cz_nr');
			$(this).css('background-image', 'url("__TEMPLATE__/mobile/index/img/xia.png")');
		}

	})

	$('#cz_nr').children('span').click(function() {
		$(this).addClass('cz_nr_active').siblings('span').removeClass('cz_nr_active');
	})

	$('.m10').children('span').click(function() {
		$(this).addClass('span_active').siblings('span').removeClass('span_active');
	})

	$('#cz_sj2').click(function() {
		if($('#cz_nr2').hasClass('cz_nr2') == true) {
			$('#cz_nr2').removeClass('cz_nr2').addClass('cz_nr_tp');
			$(this).css('background-image', 'url("__TEMPLATE__/mobile/index/img/shang.png")');
		} else {
			$('#cz_nr2').removeClass('cz_nr_tp').addClass('cz_nr2');
			$(this).css('background-image', 'url("__TEMPLATE__/mobile/index/img/xia.png")');
		}
	})

	// 遮罩
	$('#liebiao').click(function() {
		$('#zhezhao').css('display', 'block');
	})

	$('#zhezhao_left').click(function() {
		$('#zhezhao').css('display', 'none');
	})
	
	$('.anniuf').click(function(){
		$('#JS_blockOverlay').css('display','block');
		$('#zhudan_list_ok').css('display','block');
	})
	
	//删除注单

	function delete_one(zdid){
//		var zhudanlist=document.getElementById("no_old_tzhm").value;
//		var shanchu_biaoshi=$('#biaoshi_'+zdid).html();
//		var xuyaoshanchubiaoshi="biaoshi_"+zdid;
//		var heji = document.getElementById('Q_heji').innerHTML;
//		var gameid = document.getElementById('no_czid').value;
//		$('#zhudan_mobile_'+zdid).remove();
//
//		var Fengge=new Array();
//		Fengge=zhudanlist.split("[H]");
//	
//		var new_tzhm="";
//		var New_zhushu=0;
//		var cur_money = 0;
//
//		for(var s=0;s<Fengge.length;s++){
//			var feghus_bis=new Array();
//			var Count_Zhushu_Jine=new Array();
//	
//			feghus_bis=Fengge[s].split("[SH]");
//			Count_Zhushu_Jine=Fengge[s].split("[G]");
//			if(feghus_bis[0]!=xuyaoshanchubiaoshi){
//				if(new_tzhm==""){new_tzhm=Fengge[s];}else{new_tzhm=new_tzhm+"[H]"+Fengge[s];}
//				if(Count_Zhushu_Jine.length==8){
//					New_zhushu=New_zhushu+Count_Zhushu_Jine[3]*1;
//					cut_je = parseInt(Count_Zhushu_Jine[2] * 100) /100;
//					cur_money = cur_money + cut_je;
//				}
//			}
//		}
//
//		cur_money = cur_money.toFixed(2);
//		document.getElementById('Q_heji').innerHTML = cur_money;
        var value = storage.getItem("wanfa_tzhm_"+zdid); 
	 	var arr=value.split('[G]');
	 	$('#J-gameOrder-lotterys-num').html(parseInt($('#J-gameOrder-lotterys-num').html())-parseInt(arr[3]));
		$('#Q_heji').html(parseInt($('#Q_heji').html())-parseInt(arr[2]));
	    sessionStorage.removeItem("wanfa_tzhm_"+zdid);
	    $('#zhudan_mobile_'+zdid).remove();
		removeAttr(zdid);
//		console.warn(all_no_old_tzhm_attr);
//		$.ajax({
//		    type: "get",
//		    url: "/mobile/pocessing/delcookie",
//		    data:{"zdid":zdid,"id":gameid},
//		    dataType: "json",
//		    success: function (data) {
//		    
//		       //console.log(JSON.parse(data));
//		    },
//		    error: function (msg) {
//		    	console.log("错误"); 
//		    }
//		});
//		
		
		//document.getElementById("no_old_tzhm").value=new_tzhm;
//		$('#J-gameOrder-lotterys-num').html(sessionStorage.length);
		
		
	}
	
	
	
	
	$('#delete_select').click(function(){
		/* $.ajax({
		    type: "get",
		    url: "/mobile/pocessing/sccookie",
		    dataType: "json",
		    success: function (data) {
		    	if(data==1){
		    		$('#Q_heji').html('0');
		    	}
		       //console.log(JSON.parse(data));
		    },
		    error: function (msg) {
		    	console.log("错误"); 
		    }
		}); */
		$("#J-balls-order-container").html('');
		$('#J-gameOrder-lotterys-num').text(0);
		$('#sm_stakes').html(0);
		$('#sm_money').html(0);
		$('#no_old_tzhm').val('');
		$('#Q_heji').html('0');
		sessionStorage.clear();
		all_no_old_tzhm_attr.length = 0;
//		console.warn(all_no_old_tzhm_attr);
	});


$('.mobile_suiyi').click(function(){
		$('#queren_zje').html('0');
	})
	
	$('.mobile_suiwu').click(function(){
		$('#queren_zje').html('0');
	})
</script>


<!--随机几注-->
<script>

//function a(){
//	var a = $('.box').children('div').children('.ball-number.ball-number-current');
//	a.trigger("click");
//}
//
//function random_core(class_id) {
//	var random = "random_" + class_id +"()";
//	eval(random);
//}
//	
//function random_core_five(class_id) {
//	var random = "random_five_" + class_id +"()";
//	eval(random);
//}

$('.ddje_q').children('span').click(function(){
			var str = $(this).html();
			$('#multiple').val(str);
			jishuan_zhushu_zidong();
		})
function removeAttr(key){
	for(var j = 0,len = all_no_old_tzhm_attr.length; j < len; j++){
		if(all_no_old_tzhm_attr[j].search(key) != -1){
			all_no_old_tzhm_attr.splice(j,1);
			return;
		}
	}
}
</script>


</html>